#Target
TgtFile = rs232com

SrcFile0 = Rs232

# App Source Paths
SrcDir = C:\softpay\ver30\SOURCE\RS232COM

AppObjects = \
	$(OBJ_DIR)\$(SrcFile0).o  

# Compiler Options
MkIncludes = -J $(SDS_INCLUDES) -I $(ACT_INCLUDES) -I $(SP2_INCLUDES) 
COptions = $(GCOPTIONS) -c -O2 -bi -g+ -cpu ARM920T -Wrx -DK2 -DARM -o$(@)

#  Target Definition Library
$(LIB_DIR)\$(TgtFile).a : $(AppObjects)
	@$(RVCTBIN)\armar -r $(LIB_DIR)\$(TgtFile).a $(AppObjects)


$(OBJ_DIR)\$(SrcFile0).o : $(SrcDir)\$(SrcFile0).c \
		C:\softpay\ver30\SOURCE\INCLUDE\codesec.h\
		C:\softpay\ver30\SOURCE\INCLUDE\batch.h\
		C:\softpay\ver30\SOURCE\INCLUDE\init.h\
		C:\softpay\ver30\SOURCE\INCLUDE\Rs232.h\
		C:\softpay\ver30\SOURCE\INCLUDE\txoinc.h\
		C:\softpay\ver30\SOURCE\INCLUDE\trt.h\
		C:\softpay\ver30\SOURCE\INCLUDE\transact.h\
		C:\softpay\ver30\SOURCE\INCLUDE\util.h\
		C:\softpay\ver30\SOURCE\INCLUDE\print.h\
		C:\softpay\ver30\SOURCE\INCLUDE\check.h\
		C:\softpay\ver30\SOURCE\INCLUDE\ui.h 
	@echo COMPILING...$(SrcFile0).c
	@$(RVCTBIN)\armcc $(MkIncludes) $(COptions) $(SrcDir)\$(SrcFile0).c >errorList.txt  2>&1
	@type errorList.txt | FmtErrorArm.exe

